<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	boolean update = Boolean.valueOf(request.getParameter("update"));
%>
<html>
<head>
<script type="text/javascript" src="<%=path%>/scripts/My97DatePicker/WdatePicker.js"></script>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绩效考核系统</title>
<link href="styles/core.css" rel="stylesheet" type="text/css">
<link href="styles/Master.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>
<script type="text/javascript" src="scripts/message.js"></script>
<script type="text/javascript" src="scripts/checkUtil.js"></script>

<script type="text/javascript" src="scripts/system/worker.js"></script>

<style>

</style>

<script>

</script>

</head>

<body>
<s:form name="workerForm" id="workerForm" action="job-addJob" namespace="/system" method="post">

	<h2 style="text-align: left">新增工作人员</h2>
	<hr width="100%" align="left" size="1" color="#E1EEF8">

	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabHeader">
    	<tr>
			<td class="tdBg_right" width="10%" height="20px">编号：</td>
			<td align="left">
				<s:textfield id="workerCode" name="worker.workerCode" cssClass="input"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
			<td class="tdBg_right" width="10%" height="20px">姓名：</td>
			<td align="left">
				<s:textfield id="workerName" name="worker.workerName" cssClass="input"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
		</tr>
		<tr>
			<td class="tdBg_right" width="10%" height="20px">性别：</td>
			<td align="left">
				<s:radio list="#{'M':'男', 'F':'女'}" name="worker.gender" value="'M'" ></s:radio>
				<font color="#ff0000">*</font>
			</td>
			<td class="tdBg_right" width="10%" height="20px">出生日期：</td>
			<td align="left">
				<s:textfield id="birthday" name="worker.birthday" cssClass="Wdate" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'})"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
		</tr>
		<tr>
			<td class="tdBg_right" width="10%" height="20px">身份证号：</td>
			<td align="left">
				<s:textfield id="idCardNo" name="worker.idCardNo" cssClass="input"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
			<td class="tdBg_right" width="10%" height="20px">民族：</td>
			<td align="left">
				<s:textfield id="nation" name="worker.nation" cssClass="input"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
		</tr>
		<tr>
			<td class="tdBg_right" width="10%" height="20px">学历：</td>
			<td align="left">
				<s:select list="#{'':'', '初中':'初中', '高中':'高中', '中专':'中专', '大专':'大专', '本科':'本科', '硕士':'硕士', '博士':'博士'}"
					id="education" name="worker.education" cssStyle="width: 135px;"></s:select>
				<font color="#ff0000">*</font>
			</td>
			<td colspan="2"></td>
		</tr>
		<tr>
			<td class="tdBg_right" width="10%" height="20px">岗位：</td>
			<td align="left">
				<s:select id="jobId" list="jobList" listKey="columeId" listValue="name"
					name="worker.jobId" headerKey="" headerValue="请选择" cssStyle="width: 135px;"></s:select>
				<font color="#ff0000">*</font>
			</td>
			<td class="tdBg_right" width="10%" height="20px">入职时间：</td>
			<td align="left">
				<s:textfield id="employedDate" name="worker.employedDate" cssClass="Wdate" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd'})"></s:textfield>
				<font color="#ff0000">*</font>
			</td>
		</tr>
	</table>

	<center>
		<div style="padding: 4px 0pt;">
			<input type="button" value="保存" class="btn_mouseout" onclick="insert();"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
			<input type="button" value="返回" class="btn_mouseout" onclick="back();"
				onmouseover="this.className='btn_mouseover'" onmouseout="this.className='btn_mouseout'"
				onmousedown="this.className='btn_mousedown'" onmouseup="this.className='btn_mouseup'">
		</div>
	</center>
</s:form>

<div id="waiting" style="display: none;">
	<div id="background" class="background"></div>
	<div id="progressBar" class="progressBar">数据加载中，请稍等...</div>
</div>
</body>
</html>